package com.mzwise.tunnel.wx.miniapp.api;

import com.mzwise.tunnel.wx.miniapp.immediateDelivery.request.WxMaImmediateDeliveryAddOrderRequest;
import com.mzwise.tunnel.wx.miniapp.immediateDelivery.result.WxMaImmediateDeliveryOrderInfoResult;
import me.chanjar.weixin.common.error.WxErrorException;

/**
 * 即时配送助手
 */
public interface WxMaImmediateDeliveryService {


  /**
   * 即时配送下单
   */
  String ADD_ORDER_URL = "https://api.weixin.qq.com/cgi-bin/express/local/business/order/add";

  /**
   * 配送下单
   * @param wxMaExpressAddOrderRequest 配送下单请求对象
   * @return 配送下单结果
   * @throws WxErrorException 请求失败时返回
   * <pre>
   *   <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html">查看文档</a>
   * </pre>
   */
  WxMaImmediateDeliveryOrderInfoResult addOrder(WxMaImmediateDeliveryAddOrderRequest wxMaExpressAddOrderRequest) throws WxErrorException;
}
